package com.wgchao.amc.repository.autho;

import com.wgchao.amc.entity.autho.SysAuthoGroup;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @作者  wgchao
 * @时间 2019-10-31 
 * @用途  
 */
@Repository
public interface SysAuthoGroupRepository  extends JpaRepository<SysAuthoGroup, Long>, JpaSpecificationExecutor<SysAuthoGroup> {

    List<SysAuthoGroup> findAllByGroupIdAndProMarkOrderById(Long groupId, String proMark);

    List<SysAuthoGroup> findAllByProMark(String proMark);
}
